import { getDetailDataApi } from "../../utils/api";

const actions = {
  // 异步请求详情页面数据
  getDetailDataAsync({ commit }, payload) {
    return new Promise((resolve) => {
      getDetailDataApi(payload).then((res) => {
        commit("getDetailData", res);
        resolve();
      });
    });
  },
};

export default actions;
